SDAC

TMemDataSet.Locate Method

Searches a dataset by the specified fields for a specific record and positions cursor on it.

Class

TMemDataSet

Syntax

function Locate(const KeyFields: array of TField; const KeyValues: variant; Options: TLocateOptions): boolean; reintroduce; overload;

Parameters
KeyFields
Holds TField objects in which to search.
KeyValues
Holds the variant that specifies the values to match in the key fields.
Options
Holds additional search latitude when searching in string fields.
Return Value
True if it finds a matching record, and makes this record the current one. Otherwise it returns False.
© 1997-2024 Devart. All Rights Reserved. Request Support DAC Forum Provide Feedback